package cn.wolfcode.crm.service.imp;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.mapper.ProChartMapper;
import cn.wolfcode.crm.query.ClientChartQueryObject;
import cn.wolfcode.crm.service.IChartService;
import cn.wolfcode.crm.service.IProChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProChartServiceImpl implements IProChartService {
    @Autowired
    private ProChartMapper mapper;


    @Override
    public List<Map<String, Object>> proChart(ClientChartQueryObject qo) {
        return mapper.proChart(qo);
    }

    @Override
    public Integer selectByNumber(Client num) {
        return mapper.selectByNumber(num);
    }

    @Override
    public Integer totalPrice(Client maney) {
        return mapper.totalPrice(maney);
    }

    @Override
    public Integer profit(Client name) {
        return mapper.profit(name);
    }




}
